//Propósito del test:		-testear expresiones

class A 
{
	varinst int int_a;
	varinst boolean bool_a;
	A(int i, boolean b)
	{
		int_a = i;
		bool_a = b;	
	}
	
	
	static void main()
	{
		varlocal int a,b,c,d,res;
		varlocal boolean x,y,z;
		varlocal String f,g,h;
		varlocal A aux;
		a = 1;
		b = 2;
		c = 3;
		d = 4;
		x = true;
		y = false;
		f = "hola";
		g = "chau";
		(System.printS("a = "));
		(System.printIln(a));
		(System.printS("b = "));
		(System.printIln(b));
		(System.printS("c = "));
		(System.printIln(c));
		(System.printS("d = "));
		(System.printIln(d));
		(System.printS("x = "));
		(System.printBln(x));
		(System.printS("y = "));
		(System.printBln(y));
		(System.printS("f = "));
		(System.printSln(f));
		(System.printS("g = "));
		(System.printSln(g));
		(System.println());
		
		(System.printSln("Probando  a+b:"));
		res = a+b;
		(System.printIln(res));
				
		(System.printSln("Probando  a-b:"));
		res = a-b;
		(System.printIln(res));
		
		(System.printSln("Probando  a*b:"));
		res = a*b;
		(System.printIln(res));
		
		(System.printSln("Probando  a/b:"));
		res = a/b;
		(System.printIln(res));
		
		(System.printSln("Probando  a%b:"));
		res = a%b;
		(System.printIln(res));
		
		(System.printSln("Probando  a+b*c:"));
		res = a+b*c;
		(System.printIln(res));
		
		(System.printSln("Probando  a*b+c:"));
		res = a*b+c;
		(System.printIln(res));
		
		(System.printSln("Probando  -a:"));
		res = -a;
		(System.printIln(res));
		
		(System.printSln("Probando  +a:"));
		res = +a;
		(System.printIln(res));
		
		(System.printSln("Probando  a>b:"));
		z = a>b;
		(System.printBln(z));
		
		(System.printSln("Probando  a<b:"));
		z = a<b;
		(System.printBln(z));
		
		(System.printSln("Probando  a<=b:"));
		z = a<=b;
		(System.printBln(z));
		
		(System.printSln("Probando  a>=b:"));
		z = a>=b;
		(System.printBln(z));
		
	
		(System.printSln("Probando  x && y:"));
		z = x && y;
		(System.printBln(z));
	
		(System.printSln("Probando  x || y:"));
		z = x || y;
		(System.printBln(z));
		
		(System.printSln("Probando  y && x:"));
		z = y && x;
		(System.printBln(z));
		
		(System.printSln("Probando  y || x:"));
		z = y || x;
		(System.printBln(z));
		
		(System.printSln("Probando !x:"));
		z = !x;
		(System.printBln(z));

		(System.println());
		(System.printSln("Creo un objeto de clase A con int_a = 4 y bool_a = true"));
		aux = new A(d,x);
		(System.println());
		
		(System.printSln("Probando  aux.int_a+b:"));
		res = aux.int_a+b;
		(System.printIln(res));
				
		(System.printSln("Probando  aux.int_a-b:"));
		res = aux.int_a-b;
		(System.printIln(res));
		
		(System.printSln("Probando  aux.int_a*b:"));
		res = aux.int_a*b;
		(System.printIln(res));
		
		(System.printSln("Probando  aux.int_a/b:"));
		res = aux.int_a/b;
		(System.printIln(res));
		
		(System.printSln("Probando  aux.int_a%b:"));
		res = aux.int_a%b;
		(System.printIln(res));
		
		(System.printSln("Probando  aux.int_a+b*c:"));
		res = aux.int_a+b*c;
		(System.printIln(res));
		
		(System.printSln("Probando  aux.int_a*b+c:"));
		res = aux.int_a*b+c;
		(System.printIln(res));
		
		(System.printSln("Probando  aux.bool_a && y:"));
		z = aux.bool_a && y;
		(System.printBln(z));

		(System.printSln("Probando  aux.bool_a || y:"));
		z = aux.bool_a || y;
		(System.printBln(z));
		
		(System.printSln("Probando  y && aux.bool_a:"));
		z = y && aux.bool_a;
		(System.printBln(z));
		
		(System.printSln("Probando  y || aux.bool_a:"));
		z = y || aux.bool_a;
		(System.printBln(z));

		(System.printSln("Probando  f == g:"));
		z = f == g;
		(System.printBln(z));

		(System.printSln("Probando  f != g:"));
		z = f != g;
		(System.printBln(z));

		(System.printSln("Probando  f == f:"));
		z = f == f;
		(System.printBln(z));

		(System.printSln("Probando  f != f:"));
		z = f != f;
		(System.printBln(z));
		
	}
	
}